﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SCrossCopyLockInfo extends IMessageBase
    {
        public var zoneA:int;
        public var zoneB:int;
        public var copyCode:int;
        public var extend:int;
        public var interval:Number;
        public const _type:int = 164;
        public static var _regist:SCrossCopyLockInfo = new SCrossCopyLockInfo(true);

        public function SCrossCopyLockInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SCrossCopyLockInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.zoneA);
            param1.writeInt(this.zoneB);
            param1.writeInt(this.copyCode);
            param1.writeInt(this.extend);
            param1.writeLong(this.interval);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.zoneA = param1.readInt();
            this.zoneB = param1.readInt();
            this.copyCode = param1.readInt();
            this.extend = param1.readInt();
            this.interval = param1.readLong();
            return;
        }// end function

    }
}
